package com.runfast.waimai.dao.model;

import java.io.Serializable;

/**
 * runfast_full_less
 * @author 
 */
public class RunfastFullLess implements Serializable {
    private Integer id;

    private Double full;

    private Double less;

    /**
     * 代理商补贴金额
     */
    private Double subsidy;

    private Integer activityId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getFull() {
        return full;
    }

    public void setFull(Double full) {
        this.full = full;
    }

    public Double getLess() {
        return less;
    }

    public void setLess(Double less) {
        this.less = less;
    }

    public Double getSubsidy() {
        return subsidy;
    }

    public void setSubsidy(Double subsidy) {
        this.subsidy = subsidy;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RunfastFullLess other = (RunfastFullLess) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFull() == null ? other.getFull() == null : this.getFull().equals(other.getFull()))
            && (this.getLess() == null ? other.getLess() == null : this.getLess().equals(other.getLess()))
            && (this.getSubsidy() == null ? other.getSubsidy() == null : this.getSubsidy().equals(other.getSubsidy()))
            && (this.getActivityId() == null ? other.getActivityId() == null : this.getActivityId().equals(other.getActivityId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFull() == null) ? 0 : getFull().hashCode());
        result = prime * result + ((getLess() == null) ? 0 : getLess().hashCode());
        result = prime * result + ((getSubsidy() == null) ? 0 : getSubsidy().hashCode());
        result = prime * result + ((getActivityId() == null) ? 0 : getActivityId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", full=").append(full);
        sb.append(", less=").append(less);
        sb.append(", subsidy=").append(subsidy);
        sb.append(", activityId=").append(activityId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}